package com.media.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;

import java.sql.Timestamp;
import java.util.Date;

/**
 * @Author: Lenovo
 * @Description: TODO
 * @DateTime: 2023/9/14 14:46
 **/
@Data
@ToString
@ApiModel(value = "评论信息")
public class Comment {
    @ApiModelProperty(value = "评论Id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    @ApiModelProperty(value = "评论者Id")
    private Integer userId;
    @ApiModelProperty(value = "评论者姓名")
    private String userName;
    @ApiModelProperty(value = "评论时间")
    private Timestamp commentTime;
    @ApiModelProperty(value = "被评论视频Id")
    private String mediaId;
    @ApiModelProperty(value = "评论内容",required = true)
    private String context;
    @ApiModelProperty(value = "点赞数")
    private Integer likesAmount;
    @ApiModelProperty(value = "被评论评论Id")
    private Integer commentId;
    @ApiModelProperty(value = "被评论者用户名")
    private String commentUserName;

    //判断用户是否点赞该评论,数据库中没有该字段
    private Integer liked;
}
